﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/CompanyCenter.Master" Inherits="System.Web.Mvc.ViewPage<AboutUsVModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%:SiteResource.Title() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/xheditor/ConfigXheditor.js"></script>
    <script type="text/javascript" src="/Scripts/xheditor/xheditor-zh-cn.js"></script>
    <script type="text/javascript" src="/Scripts/formValidator.js" charset="GB2312"></script>
    
    <style type="text/css">
        .validation-label-error
        {
            color: Red;
            margin-left: 10px;
        }
        .validation-element-error
        {
            background-color: #fdd;
        }
    </style>
    <script type="text/javascript">
        var lib = new library.AboutUs();
        var editor;
        $(function () {
            editor = $("#txtAbout").xheditor(editorConfig);
            lib.BindValidate();
        });
        
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div class="usercenter-main">
        <div class="usercenter-main-topbg">
        </div>
        <div class="usercenter-main-content">
            <div class="usercenter-main-content-title">
                <div class="usercenter-main-content-title-left">
                    企业资料管理</div>
            </div>
            <div class="usercenter-notes">
                尽量完善您的企业信息，有助于更多的求职者了解和关注您的企业！</div>

            <form id="form1" action="/CompanyCenter/UpCoporation" method="post">
            <input type="hidden" name="Id" value="<%:Model.Id %>" />
            <div class="usercenter-main-content">
                <div class="textboxs">
                    <div class="textboxs-label">
                        您的企业是：</div>
                    <div class="textboxs-box">
                        <%switch (Model.CertificationLevel)
                          {
                              default:
                              case CertificationLevel.Normal: %>
                        会员企业
                        <%break;
                          case CertificationLevel.Contract: %>
                          认证企业
                          <%break;
                            case CertificationLevel.Authority: %>
                            合作企业
                        <%break;
                        } %>
                         <a target="_blank" href="/home/companylevel">企业认证简介</a>
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业名称：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt2" id="txtCompanyName" name="CompanyName" value="<%:Model.CompanyName %>" />
                    </div>
                    <div class="textboxs-message" id="txtCompanyNameTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业邮箱：</div>
                    <div class="textboxs-box">
                        <input type="text" id="txtEmail" class="textboxs-ipt" name="EMail" value="<%:Model.EMail %>" /></div>
                    <div class="textboxs-message" id="txtEmailTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        联系QQ：</div>
                    <div class="textboxs-box">
                        <input type="text" id="txtQQ" class="textboxs-ipt" name="QQ" value="<%:Model.QQ %>" /></div>
                     <div class="textboxs-message" id="txtQQTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        联系电话：</div>
                    <div class="textboxs-box">
                        <input type="text" id="txtPhone" class="textboxs-ipt" name="Phone" value="<%:Model.Phone %>" /></div>
                     <div class="textboxs-message" id="txtPhoneTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        公司地址：</div>
                    <div class="textboxs-box">
                        <input type="text" id="txtLocation" class="textboxs-ipt" name="Location" value="<%:Model.Location %>" /></div>
                    <div class="textboxs-message" id="txtLocationTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业简介：</div>
                    <div class="textboxs-box">
                        <textarea id="txtAbout" rows="15" style="width: 520px" name="About"><%=Model.About %></textarea>
                        <div id="txtAboutTip"></div>
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                    </div>
                    <div class="textboxs-box">
                        <input type="image" src="/content/images/usercenter-save.png" />
                    </div>
                </div>
            </div>
            </form>
        </div>
        <div class="usercenter-main-bottombg">
        </div>
    </div>
</asp:Content>

